package com.qf.spring.pojo;

import java.util.*;

/**
 * @author 郑大仙丶
 * @version 1.0
 * @date 2021/3/18 16:31
 */
public class User {

    private Integer id;

    private String name;

    private Date date;


    private String[] array;

    private List<String> list;

    private Set<String> set;

    private Map<String,String> map;

    private Properties props;


    @Override
    public String toString() {
        return "User{" +
                "array=" + Arrays.toString(array) +
                ", list=" + list +
                ", set=" + set +
                ", map=" + map +
                ", props=" + props +
                '}';
    }

    public String[] getArray() {
        return array;
    }

    public void setArray(String[] array) {
        this.array = array;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void initMethod(){
        System.out.println("啊啊啊，我被创建啦！！！！");
    }

    public void destroyMethod(){
        System.out.println("啊啊啊，我被干掉了！！！！");
    }


    public User(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public User() {
        System.out.println("User对象通过无参创建了！");
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        System.out.println("给id属性赋值");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("给name属性赋值");
        this.name = name;
    }
}
